package com.nifostasky.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/config")
@RestController
public class ConfigController {
    //注入配置中心里的配置文件的my.name值
    @Value("${my.name}")
    private String myName;

    @RequestMapping("/my")
    public String getMyName(){
        return myName;
    }
}
